package com.iengine.services.api.command.O2O;

import java.util.Map;

import com.iengine.services.api.command.AbstractApiCommand;

public class CommandO2O extends AbstractApiCommand{

	public static final String SUPERCLASS = "superClass";
	
	public static final String SUBCLASS = "subClass";
	
	@Override
	protected Map getFormatResult(Map map) {
		String superClass = (String) map.get(SUPERCLASS);
		String subClass = (String) map.get(SUBCLASS);
		String result = "";
		if (null != superClass && superClass.length() != 0) {
			result += superClass;
		}
		if (null != subClass && subClass.length() != 0) {
			result += subClass;
		}
		map.put(RESULT, result);
		return null;
	}

	@Override
	public String getCommandType() {
		return "O2O";
	}
	
	@Override
	public String getTTs() {
		return "";
	}

}
